package study.javase.inherit_test;

public class Person {
     public int age;

    public Person(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


}
class Student extends Person{
    int score;

    public Student(int age, int score) {
        super(age);
        this.score = score;
    }


    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
    public static void main(String[] args) {
    }
}
